package pers.mobian.springseventh;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Date 2021/7/18 17:54
 * @Created mobian
 * @Description
 */
public class MoBianTestScan {
	public static void main(String[] args) {

//		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
//		System.out.println(context.getBean("car"));

		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-test.xml");

		System.out.println(context.getBean("car"));
	}
}
